package com.grace.portal.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "tbl_user")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "tbl_user_sequence")
public class User extends IdEntity{

	private static final long serialVersionUID = 2860834281331805936L;
	
	//用户名
	private String userName; 	
	//密码
	private String password;
	//创建时间
	private Date createTime;

	@Column(length=50,unique=true,nullable=false)
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(length=50,unique=true,nullable=false)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
}
